package com.ruoyi.crm.product.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品类别管理对象 crm_pro_type
 * 
 * @author ruoyi
 * @date 2021-09-02
 */
public class CrmProType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 上级分类 */
    private Long parentid;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String proTypeName;

    /** 描述 */
    @Excel(name = "描述")
    private String typeMsg;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentid(Long parentid) 
    {
        this.parentid = parentid;
    }

    public Long getParentid() 
    {
        return parentid;
    }
    public void setProTypeName(String proTypeName) 
    {
        this.proTypeName = proTypeName;
    }

    public String getProTypeName() 
    {
        return proTypeName;
    }
    public void setTypeMsg(String typeMsg) 
    {
        this.typeMsg = typeMsg;
    }

    public String getTypeMsg() 
    {
        return typeMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentid", getParentid())
            .append("proTypeName", getProTypeName())
            .append("typeMsg", getTypeMsg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
